﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GUI
{
    public partial class CauHinh : Form
    {
        public CauHinh()
        {
            InitializeComponent();
        }
        //CẤU HÌNH
        public static int chedo = 0; //ERROR
        public static int tenloi=-1;

        private void CauHinh_Load(object sender, EventArgs e)
        {
            chedo = cbchedo.SelectedIndex;
            tenloi = cbtenloi.SelectedIndex;

            cbchedo.Items.Add("Lỗi");
            cbchedo.Items.Add("Sửa lỗi");

            cbtenloi.Items.Add("1.Dirty Read");
            cbtenloi.Items.Add("2.Phantom");
            cbtenloi.Items.Add("3.Unrepeatableread");
            cbtenloi.Items.Add("4.Lost Update");
        }

        private void btok_Click(object sender, EventArgs e)
        {
            chedo = cbchedo.SelectedIndex;
            tenloi = cbtenloi.SelectedIndex;
            this.Close();
        }

        private void btcancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }


        public static int loi { get; set; }
    }
}
